home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DJGPP
/
BCCGRX12.ZIP
/
contrib
/
bcc2grx
/
src
/
bccgrx08.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-05-03
|
821b
|
33 lines
/*
* BCC2GRX - Interfacing Borland based graphics programs to LIBGRX
* Copyright (C) 1993 Hartmut Schirmer
*
* see bccgrx.c for details
*/
#include "bccgrx00.h"
/* ----------------------------------------------------------------- */
void setfillstyle(int pattern, int color)
{
_DO_INIT_CHECK;
if (pattern < 0 || pattern >= USER_FILL) {
ERR = grError;
return;
}
FPATT = pattern;
FILL = color;
FILLP.gp_bmp_data = (unsigned char *)&__gr_fpatterns[FPATT];
}
/* ----------------------------------------------------------------- */
void setfillpattern( char *upattern, int color)
{
_DO_INIT_CHECK;
FILL = color;
FPATT = USER_FILL;
memcpy(__gr_fpatterns[USER_FILL], upattern, 8);
FILLP.gp_bmp_data = (unsigned char *)&__gr_fpatterns[USER_FILL];
}